package com.doitedu.day05.oob

/**
 * @Date 22.6.25
 * @Created by HANGGE
 * @Description
 * 动态混入
 * 在创建对象的时候确定要继承的特质 (可以是多个特质)
 */
class _06万能实现类 {  // 没有实现(继承)任何的特质

}
object  _06万能实现类{
  def main(args: Array[String]): Unit = {

    new _06万能实现类 with  _06特质1 {
      override def a: Unit = ???

      override def b(): Unit = ???

      override def add(x: Int, y: Int): Double = ???
    }

    new _06万能实现类 with  _06特质2 with  _06特质3 {
      override def aa: Unit = ???

      override def aaa: Unit = ???

      override def aa(x: Int): Int = ???
    }


  }


}
